<!DOCTYPE html>
<!-- saved from url=(0064)http://www.mogujie.com/settings/avatar?ptp=1.pAo2d9pI.0.52.UfNB5 -->
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		
		<title>蘑菇街 - 我的买手街！</title>
		<meta name="keywords" content="蘑菇街,mogujie,买手,买手街,网购">
		<meta name="description" content="蘑菇街-中国最大的女性电子商务平台，精选款式美、质量优、价格合理的衣服、鞋子、箱包、配饰和美妆等潮流商品。让8000万女性会员在这里享受购物乐趣，发现时尚精品，分享消费体验。">
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
		<meta name="copyright" content="mogujie.com">
		<script src="{{URL::asset('js/jquery-1.7.2.js')}}"></script>
		<meta name="robots" content="nofollow">
		<link rel="search" type="application/opensearchdescription+xml" href="http://www.mogujie.com/opensearch.xml">
		<link rel="icon" href="http://s16.mogucdn.com/new1/v1/bmisc/3ce382db3c8aaca5d07bd36711e77134/171169993508.ico" type="image/x-icon">    
		<link rel="stylesheet" type="text/css" href="{{URL::asset('./css/pkg-navigation.css$2169bfc0_1466084317.cs')}}s" media="all">
		<link rel="stylesheet" type="text/css" href="./css/module-captcha.css$2169bfc0_1466084317.css" media="all">
		<link rel="stylesheet" type="text/css" href="{{URL::asset('./css/page-setting.css$2169bfc0_1466084317.cs')}}s" media="all">
		
	</head>
	<body class="media_screen_1200" >
		@include('common.header1')
		<div id="body_wrap">
			<div id="body" class="fm960">
				<div class="mu_wrap clearfix">
					@include('common.header')
					<div class="mu_content_wrap">
						<div id="setting_box" class="fl">
						<div class="settings_title">
							<span>修改头像</span>
						</div>
						<div id="setting_form" class="setting_avartar">
							<form id="avartarForm"  enctype="multipart/form-data" method="POST" action="/upload">
								<input type="hidden" name="type" value="avatar">
								<input type="hidden" name="did" value="1">
								<dl>
									<dd>当前头像：</dd><dt><img class="head_bd r3" src="/{{$result->dphoto}}" width="100px" height="100px" alt="{{$result->dname}}"></dt>
									<dd>上传新头像：</dd>
								
										{!!csrf_field()!!}
										
									<input type="file" name="dphoto" id="up_img">
									
									<dd class="msg " style="display:block;margin-top:20px;margin-left:-130px;">&nbsp;</dd>
									<dt class="msg " style="display:block ;position:relative;top:10px" >建议使用正方形的图片，支持JPG、GIF、JPEG格式，100K以内。</dt>
									<dd class="msg" style="display: none;">&nbsp;</dd>
									<dt class="msg" style="display: none;">
										<span style="margin-left:-110px ;position:relative;top:10px">正在上传，请稍后……</span>
									</dt>
									
								</dl>
							</form>
							<script>
								var up_img=document.getElementById('up_img');
								
								var	msg=document.getElementsByClassName('msg');
								var	preview=document.getElementsByClassName('preview');
								var	avartar_confirm=document.getElementsByClassName('avartar_confirm');
								//console.log(avartar_confirm[1]);
								
								up_img.onfocus=function(){
									msg[0].style.display='none';
									msg[1].style.display='none';
									msg[2].style.display='block';
									msg[3].style.display='block';
									
									var set=setTimeout(function(){
										msg[2].style.display='none';
										msg[3].style.display='none';
										document.getElementById('avartarForm').submit();
									},5000);
								}
							</script>
						</div>
						<input type="hidden" id="refer" value="">
						</div>            
					</div>
				</div>
            </div>
		</div>
		@include('common.footer')
</body>
</html>